﻿<%@ Page Language="C#" AutoEventWireup="true" EnableEventValidation="false" CodeFile="CargoMove.aspx.cs" Inherits="Move_CargoMove" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>业务管理--立库移动</title>

    <link href="../css/css.css" rel="stylesheet" type="text/css" />
    <script type="text/jscript" src="../js/WdatePicker.js"></script>
    <script type="text/javascript">
        function showEdit(Lane, Line, Lcol, Lay,Hid) {

            document.getElementById('CurrentLane').value = Lane;
            document.getElementById('CurrentLine').value = Line;
            document.getElementById('CurrentLayer').value = Lay;
            document.getElementById('CurrentCol').value = Lcol;                     
                        
        }
    </script>
    <script type="text/javascript">       
	function fPOSDlg(URL,Target,form)  //
	{
		showx = event.screenX - event.offsetX - 4 ; // + deltaX;
		showy = event.screenY - event.offsetY + 18; // + deltaY;
		retval = window.showModalDialog(URL, "", "dialogWidth:400px; dialogHeight:350px; dialogLeft:"+showx+"px; dialogTop:"+showy+"px; status:no; directories:yes;help:no;scrollbars:no;Resizable=no; ");
		
		if( retval != null )
		{
			var CompanyName = retval.split(",");
			document.form1.txtPos_ID.value = CompanyName[1];           //货位号ID
		}	
	}
    </script>
    
    <script type="text/javascript">
        window.onload=function(){
          var a = document.getElementById("loading");
          a.parentNode.removeChild(a);
        }
        document.write('<div id="loading" style="line-height:122px;"><table cellpadding="0" width="100%"><Tr><Td align="center" height="500" valign="middle"><img src="../images/loading.gif"></td></tr></table></div>');
    </script>
    <SCRIPT type="text/javascript">
       var _oldColor;   
       function SetNewColor(source)   
       {   
          _oldColor=source.style.backgroundColor;   
          source.style.backgroundColor='#FFFF00';   

       }
       function SetOldColor(source)   
       {   
         source.style.backgroundColor=_oldColor;   
       }
 </SCRIPT>

    <SCRIPT type="text/javascript">
       var _oldColor;   
       function SetNewColor1(source)   
       {   
          _oldColor=source.style.backgroundColor;   
          source.style.backgroundColor='#FFFFFF';   

       }
       function SetOldColor(source)   
       {   
         source.style.backgroundColor=_oldColor;   
       }
 </SCRIPT>
 
 



 
    <style type="text/css">
        .style1
        {
            width: 70%;
        }
        .style2
        {
            width: 947px;
        }
        .style3
        {
            width: 470px;
        }
        .auto-style1 {
            width: 80px;
            height: 22px;
        }
        .auto-style2 {
            width: 120px;
            height: 22px;
        }
        .auto-style3 {
            height: 22px;
        }
        .auto-style4 {
            width: 947px;
            height: 102px;
        }
        .auto-style5 {
            height: 102px;
        }
        .auto-style6 {
            height: 102px;
        }
    </style>

</head>
<body>
    <form id="form1" runat="server">
     <div>
        <asp:ScriptManager ID="SCM_Storage" runat="server">
        </asp:ScriptManager>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td style="height: 30px">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td style="background-image: url(../images/tab_03.gif); background-repeat: repeat-x;
                                width: 12px;">
                                &nbsp;
                            </td>
                            <td style="background-image: url(../images/tab_05.gif); background-repeat: repeat-x;
                                height: 30px;">
                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td style="width: 46%; vertical-align: middle;">
                                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                    <td style="width: 5%; vertical-align: middle;">
                                                        <img src="../images/tb.gif" width="16" height="16" />
                                                    </td>
                                                    <td style="width: 95%;">
                                                        <span>你当前的位置</span>：业务管理-立库移动
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td width="54%">
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td width="16" style="background-image: url(../images/tab_07.gif); height: 30px;">
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td style="background-image: url(../images/tab_12.gif); width: 8px;">
                                &nbsp;
                            </td>
                            <td>
                                <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                                    <ContentTemplate>
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0" style="border: 1px solid #b5d6e6;">
                                        
                                            <tr>
                                                <td style="padding-left: 2px; padding-right: 2px;">
                                                    <asp:UpdatePanel ID="UpdateP" runat="server" UpdateMode="Conditional">
                                                        <ContentTemplate>
                                                            <table cellpadding="0" cellspacing="0" width="100%" border="0" id="tab1">
                                                                <tr>
                                                                    <td style="padding: 2px;" class="auto-style6">
                                                                        <table width="100%" cellspacing="0" cellpadding="0" border="1" bordercolordark="#ffffff"
                                                                            bordercolorlight="#b5d6e6">
                                                                            <tr>
                                                                                <td class="auto-style4">
                                                                                  <table width="98%" cellspacing="0" cellpadding="0" border="1" bordercolordark="#ffffff" 
                                                                                        bordercolorlight="#b5d6e6" >
                                                                                        <tr style="height: 35px;">
                                                                                            
                                                                                            <td style="width: 100px;" align="right">
                                                                                                巷道选择：
                                                                                            </td>
                                                                                            <td style=" padding-left: 2px;">
                                                                                               <asp:DropDownList ID="ddlNo_Lane" runat="server"  
                                                                                                    Style="width: 104px; height: 19px; border: solid 1px #b5d6e6; font-size: 9pt;" AutoPostBack="True" OnSelectedIndexChanged="ddlNo_Lane_SelectedIndexChanged">
                                                                                                </asp:DropDownList>
                                                                                            </td>
                                                                                                   <td align="right" class="auto-style2">列：
                                                                                               </td>
                                                                                            <td style="padding-left: 2px;" class="auto-style3">
                                                                                                <asp:DropDownList ID="ddlNo_Col" runat="server"
                                                                                                    AutoPostBack="true" OnSelectedIndexChanged="ddlNo_Col_SelectedIndexChanged">
                                                                                                    <asp:ListItem Value="1">2-60</asp:ListItem>
                                                                                                    <asp:ListItem Value="2">61-119</asp:ListItem>
                                                                                                </asp:DropDownList>
                                                                                            </td>
                                                                                             <td style="width: 80px;" align="right">
                                                                                                 物料编码：
                                                                                            </td>
                                                                                            <td style="width: 120px; padding-left: 2px;">
                                                                                                <asp:TextBox ID="txtMat_Code" runat="server" Style="width: 100px; height: 19px; border: solid 1px #b5d6e6;
                                                                                                    font-size: 9pt;" 
                                                                                                    MaxLength="30"></asp:TextBox>
                                                                                            </td>
                                                                                            <td style="width: 100px;" align="right">
                                                                                                 物料名称：
                                                                                            </td>
                                                                                            <td style="width: 120px; padding-left: 2px;">
                                                                                                <asp:TextBox ID="txtMat_Name" runat="server" Style="width: 100px; height: 19px; border: solid 1px #b5d6e6;
                                                                                                    font-size: 9pt;" 
                                                                                                    MaxLength="30"></asp:TextBox>
                                                                                            </td>     
                                                                                        </tr>
                                                                                             <td  height="30" align="center" style="padding-left: 2px;"class="auto-style1" colspan="8">
                                                                                                 
                                                                                                  <asp:ImageButton ID="btnFind" runat="server" ImageUrl="~/Images/btn/btn_Search.gif"
                                                                                                    Width="63" OnClick="btnFind_Click" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                                                                 <asp:ImageButton ID="btnReset" runat="server" ImageUrl="~/Images/btn/btn_Reset.gif"
                                                                                                    Width="63" OnClick="btnReset_Click" />
                                                                                            </td>
                                                                                        </tr>
                                                                                        
                                                                                        <tr style="height: 35px; visibility:hidden">
                                                                                             <td align="right" class="auto-style1">
                                                                                                起始日期：
                                                                                            </td>
                                                                                            <td style="padding-left: 2px;" class="auto-style2">
                                                                                                <asp:TextBox ID="txtDateS" runat="server" Style="width: 100px; height: 19px; border: solid 1px #b5d6e6;
                                                                                                    font-size: 9pt;" onfocus="new WdatePicker(this)"></asp:TextBox>
                                                                                            </td>
                                                                                            
                                                                                            <td align="right" class="auto-style1">
                                                                                                截止日期：
                                                                                            </td>
                                                                                            <td style="padding-left: 2px;" class="auto-style2">
                                                                                                <asp:TextBox ID="txtDateE" runat="server" Style="width: 100px; height: 19px; border: solid 1px #b5d6e6;
                                                                                                    font-size: 9pt;" onfocus="new WdatePicker(this)"></asp:TextBox>
                                                                                            </td>
                                                                                            
                                                                                        </tr>
                                                                                    </table>
                                                                                    
                                                                                 </td>
                                                                                <td align="right" class="auto-style5">
                                                                               
                                                                                
                                                                                <table cellpadding="0" cellspacing="0" border="0" width="100" >
                                                                                        <tr>
                                                                                            <td>
                                                                                                 
                                                                                            </td>
                                                                                            <td align="left">
                                                                                                 起点坐标
                                                                                            </td>
                                                                                            <td align="right" style="height: 22px;">
                                                                                                &nbsp;
                                                                                            </td>
                                                                                            <td>
                                                                                                 
                                                                                            </td>
                                                                                            <td align="left">
                                                                                                终点坐标
                                                                                            </td>
                                                                                            
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td align="right" style="height: 22px;">
                                                                                                排：
                                                                                            </td>
                                                                                            <td align="left">
                                                                                                <asp:TextBox ID="txtLineS" runat="server" Width="80" Height="14"></asp:TextBox>
                                                                                            </td>
                                                                                            <td align="right" style="height: 22px;">
                                                                                                &nbsp;
                                                                                            </td>
                                                                                            <td align="right" style="height: 22px;">
                                                                                                排：
                                                                                            </td>
                                                                                            <td align="left">
                                                                                                <asp:TextBox ID="txtLineE" runat="server" Width="80" Height="14"></asp:TextBox>
                                                                                            </td>
                                                                                            
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td align="right" style="height: 22px;">
                                                                                                列：
                                                                                            </td>
                                                                                            <td align="left">
                                                                                                <asp:TextBox ID="txtColS" runat="server" Width="80" Height="14"></asp:TextBox>
                                                                                            </td>
                                                                                            <td align="right" style="height: 22px;">
                                                                                                &nbsp;
                                                                                            </td>
                                                                                            <td align="right" style="height: 22px;">
                                                                                                列：
                                                                                            </td>
                                                                                            <td align="left">
                                                                                                <asp:TextBox ID="txtColE" runat="server" Width="80" Height="14"></asp:TextBox>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td align="right" style="height: 22px;">
                                                                                                层：
                                                                                            </td>
                                                                                            <td align="left">
                                                                                                <asp:TextBox ID="txtLayerS" runat="server" Width="80" Height="14"></asp:TextBox>
                                                                                            </td>
                                                                                            <td align="right" style="height: 22px;">
                                                                                                &nbsp;
                                                                                            </td>
                                                                                            <td align="right" style="height: 22px;">
                                                                                                层：
                                                                                            </td>
                                                                                            <td align="left">
                                                                                                <asp:TextBox ID="txtLayerE" runat="server" Width="80" Height="14"></asp:TextBox>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td align="center" style="height: 22px;" colspan="2">
                                                                                                <asp:ImageButton ID="btnStart"   runat="server" ImageUrl="~/Images/btn/btnSetStart.jpg"
                                                                                                    Width="82" onclick="btnStart_Click"  />
                            
                                                                                            </td>
                                                                                            <td align="right" style="height: 22px;">
                                                                                                &nbsp;
                                                                                            </td>
                                                                                            <td align="center" style="height: 22px;" colspan="2">
                                                                                                <asp:ImageButton ID="btnEnd" runat="server" ImageUrl="~/Images/btn/btnSetEnd.jpg"
                                                                                                    Width="82" onclick="btnEnd_Click" />
                            
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                               <td align="left" class="auto-style5">
                                                                                    <table cellpadding="0" cellspacing="0" border="0" width="150">
                                                                                        <tr>
                                                                                            <td align="left" style="height: 22px;">
                                                                                               &nbsp;&nbsp;移动算法
                                                                                            </td>
                                                                                           
                                                                                        </tr>
                                                                                        <tr>
                                                                                         <td align="left" style="height: 30px;">

                                                                                             <asp:RadioButtonList ID="rdbSuanFa" runat="server" Height="22px" 
                                                                                                    Width="130px" >
                                                                                                 <asp:ListItem Selected="True" Value="0">点点移动</asp:ListItem>
                                                                                                <%-- <asp:ListItem Value="1">巷道口方向整理</asp:ListItem>
                                                                                                 <asp:ListItem Value="-1">巷道尾方向整理</asp:ListItem>--%>

                                                                                             </asp:RadioButtonList>

                                                                                              

                                                                                           </td> 
                                                                                        </tr>
                                                                                         <tr>
                                                                                                                                               
                                                                                            <td align="left" style="height: 35px;">
                                                                                                &nbsp;
                                                                                                <asp:ImageButton ID="btnCMD" runat="server" ImageUrl="~/Images/btn/btn_CmdOut.gif"
                                                                                                    Width="80" onclick="btnCMD_Click"  />
                           
                                                                                            </td>
                                                                                         </tr>
                                                                                         <tr>
                                                                                            <td align="left" style="height: 35px;">
                                                                                                   <asp:Label ID="lbmsg" runat="server" ForeColor="Red"></asp:Label>
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                    
                                                                               </td>                                                           
                                                                                   
                                                                                </td>
                                                                               
                                                                            </tr>
                                                                        </table>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td style="padding: 2px; text-align: center;">
                                                                        <div style="margin-left: 0px; margin-top: 3px; width: 100%; height: 375px; overflow-x: auto;
                                                                            overflow-y: auto;">
                                                                            <asp:GridView ID="GV" runat="server" Width="100%" BorderWidth="1px" BorderColor="#B5D6E6" CellPadding="0"
                                                                                CellSpacing="0" OnRowDataBound="GV_RowDataBound"  onselectedindexchanging="GV_SelectedIndexChanging"> 
                                                                                <HeaderStyle HorizontalAlign="Center" CssClass="gvHeader" Font-Bold="true" Height="20px" />
                                                                                <RowStyle CssClass="gridviewRow" HorizontalAlign="Center" />
                                                                            </asp:GridView>
                                                                        </div>

                                                                        <input id="CurrentLane" type="hidden" runat="server" />
                                                                        <input id="CurrentLine" type="hidden" runat="server" />
                                                                        <input id="CurrentLayer" type="hidden" runat="server" />
                                                                        <input id="CurrentCol" type="hidden" runat="server" />
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </ContentTemplate>
                                                    </asp:UpdatePanel>
                                                </td>
                                            </tr>
                                        </table>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                            </td>
                            <td style="background-image: url(../images/tab_15.gif); width: 8px;">
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td style="background-image: url(../images/tab_19.gif); height: 35px;">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td style="width: 12px; height: 35px;">
                                <img src="../images/tab_18.gif" width="12" height="35" />
                            </td>
                            <td>
                                &nbsp;
                            </td>
                            <td width="16">
                                <img src="../images/tab_20.gif" width="16" height="35" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        
    </div>
    </form>
</body>
</html>
